package org.dong.service.Impl;


import org.dong.Tool.Data;
import org.dong.Tool.MyBatisUtil;
import org.dong.Mapper.ReceptionMapper;
import org.dong.pojo.AdminUser;
import org.dong.service.ReceptionService;
import org.springframework.context.annotation.DependsOn;
import org.springframework.stereotype.Component;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;

@Service
public class ReceptionServiceImpl implements ReceptionService {

    @Resource
    ReceptionMapper receptionMapper;

    @Override
    public AdminUser checkLogin(String account, String password) {

       return  receptionMapper.getAdminUser(account, Data.getMD5Hash(password));

    }
}
